package com.appspot.didit.client.workitem;

import com.google.gwt.event.shared.GwtEvent;

public class TagCreatedEvent extends GwtEvent<TagCreatedHandler> {

    private static Type<TagCreatedHandler> TYPE;

    public static Type<TagCreatedHandler> getType() {
            return TYPE != null ? TYPE
                            : (TYPE = new Type<TagCreatedHandler>());
    }

    public TagCreatedEvent() {
    }

    @Override
    public final Type<TagCreatedHandler> getAssociatedType() {
            return getType();
    }

    protected void dispatch(TagCreatedHandler handler) {
            handler.onTagCreated(this);
    }

}